// ***********************************************************************
// Assembly         : SgResearch.Core
// Author           : Jean-Francois LEQUEUX
// Created          : 04-13-2013
// Last Modified By : Jean-Francois LEQUEUX
// Last Modified On : 04-13-2013
// ***********************************************************************
// <copyright file="MapDtoAttribute.cs" company="SGCIB">
//     Copyright (c) . All rights reserved.
// </copyright>
// <summary>Map any model to any dto</summary>
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MvcToolbox
{
    /// <summary>
    /// Class Map Data Transfer Object Attribute
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class MapDtoAttribute : System.Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MapDtoAttribute"/> class.
        /// </summary>
        /// <param name="dtoType">Type of the Data Transfer Object.</param>
        public MapDtoAttribute(Type dtoType)
        {
            this.DtoType = dtoType;
        }

        /// <summary>
        /// Gets or sets the type of the Data Transfer Object.
        /// </summary>
        /// <value>The type of the Data Transfer Object.</value>
        public Type DtoType { get; set; }
    }
}
